﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace NewRen.Models.ViewModel
{
    public class vMoneyRecord
    {
        public int ID { get; set; }
        public int UserID { get; set; }

        /// <summary>
        ///收支金额
        /// </summary>
        public double Money { get; set; }

        /// <summary>
        /// 收支类型
        /// </summary>
        public TransactionType Transaction { get; set; }
        
        public DateTime Time { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Hint { get; set; }

        public vMoneyRecord() { }
        public vMoneyRecord(MoneyRecord model) {
            this.ID = model.ID;
            this.UserID = model.UserID;
            this.Money = model.Money;
            this.Transaction = model.Transaction;
            this.Time = model.Time;
            this.Hint = model.Hint;
        }
    }
}